package com.yeyks;

import com.yeyks.common.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.time.LocalDateTime;
import java.util.TimeZone;

@SpringBootApplication
@Slf4j
public class MattressServerApplication {

    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        ConfigurableApplicationContext context = SpringApplication.run(MattressServerApplication.class, args);
        log.info(DateUtils.formatYMDHMSStr(LocalDateTime.now()) + ", 夜鱼床垫服务运行成功");
    }

}
